package com.learn.newcode.temp;

/**
 * @author wangxing
 * @version 2020/5/29 10:37 Administrator
 */
public class TestIncr {
    /**
     * @param args
     */
    public static void main(String args[]) {
        System.out.println(getResult20200529());
    }

    public static int getResult20200529() {
        int i = 1;
        i = i++ + i;
        return i;
    }

    public static void printData() {
        String s = "tommy";
        Object o = s;
        sayHello(o); //语句1
        sayHello(s); //语句2
    }

    public static void sayHello(String to) {
        System.out.println(String.format("Hello, %s", to));
    }

    public static void sayHello(Object to) {
        System.out.println(String.format("Welcome, %s", to));
    }
}
